package com.example.springdemo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel(value = "员工信息")
public class Emp implements Serializable {
    @NotBlank
    @ApiModelProperty(value = "员工工号", name = "id", example = "1", required = true)
    private Integer id;

    private String name;

    private String position;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    private static final long serialVersionUID = 1L;

}